package com.karina.visualization.chart.model;

import java.util.ArrayList;
import java.util.List;

public class XAxisModel extends AxisModels {

	private boolean startFromZeroPoint = false;

	public class categoryModel {
		private SeriesModel series;

		private double dValue;

		public categoryModel(SeriesModel series, double dvalue) {
			setSeries(series);
			setWidth(2);

			setdValue(dvalue);
		}

		public void setSeries(SeriesModel series) {
			this.series = series;
		}

		public SeriesModel getSeries() {
			return series;
		}

		public void setdValue(double dValue) {
			this.dValue = dValue;
		}

		public double getdValue() {
			return dValue;
		}
	}

	private final List<String> categories = new ArrayList<String>();

	public List<String> getCategories() {
		return categories;
	}

	public void addCategory(String category) {
		categories.add(category);
	}

	public void setStartFromZeroPoint(boolean startFromZero) {
		startFromZeroPoint = startFromZero;
	}

	public boolean isStartFromZeroPoint() {
		return startFromZeroPoint;
	}
}